<template>
	<view>
		<view class="" v-for="item in petfilesForm.rarchivesImages">
			<view class="" style="padding: 20rpx;border-radius: 20rpx;background-color: #fff;">
				<image style="width: 100%;border-radius: 20rpx;vertical-align: top;" :src="item" mode="widthFix" @click="dianji"></image>
			</view>
		</view>
	</view>
</template>

<script>
import {
	searchPlugsPetRarchivesList,
	insertPlugsPetRarchives,
	delPlugsPetRarchives,
	updatePlugsPetRarchives,
	searchPlugsPetRarchivesById,
	uploadImages,
	getBusinessInfoList
} from '../../../utils/api.js';
export default {
	data() {
		return {
			catId: 0,
			petfilesForm: []
		};
	},
	onLoad(e) {
		let self = this;
		if (e.id) {
			self.catId = e.id;
			self.getPetfilesList();
		}
		// if (self.versionStatus) {
		// 	self.getStoresList();
		// }
	},
	methods: {
		getPetfilesList() {
			let self = this;
			let postData = {
				page: 1,
				sizes: 1,
				id: self.catId
			};
			searchPlugsPetRarchivesById(postData).then(res => {
				if (res.code == 200) {
					this.petfilesForm = res.body;
					if (this.petfilesForm.rarchivesImages) {
						this.petfilesForm.rarchivesImages = JSON.parse(this.petfilesForm.rarchivesImages);
					}
					if (this.petfilesForm.extJson) {
						this.petfilesForm.extJson = JSON.parse(this.petfilesForm.extJson);
					}
				}
			});
		},
		dianji() {
			uni.previewImage({
				urls: this.petfilesForm.rarchivesImages, // 需要预览的图片链接列表
				
			});
		},
		
	}
};
</script>

<style></style>
